2017-02-22 01:04:35 +03:00
|
|
|
AM_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\" -DSYSCONFDIR=\"$(sysconfdir)\" \
|
|
|
|
-I$(top_builddir)/lib -I$(top_srcdir)/lib
|
2003-09-07 04:44:12 +04:00
|
|
|
|
2016-12-04 13:21:10 +03:00
|
|
|
CLEANFILES = revision.h
|
|
|
|
|
2016-05-20 13:59:57 +03:00
|
|
|
if BUILDING_FROM_GIT
|
2017-05-09 21:23:04 +03:00
|
|
|
SOMETHING = "REVISION \"`git describe --tags 2>/dev/null`\""
|
2016-05-20 13:59:57 +03:00
|
|
|
else
|
|
|
|
SOMETHING = "NOTHING \"from tarball\""
|
|
|
|
endif
|
|
|
|
|
|
|
|
nano.o: revision.h
|
|
|
|
winio.o: revision.h
|
|
|
|
|
2017-05-09 15:49:21 +03:00
|
|
|
# Always run the commands in this rule. But update the target
|
|
|
|
# only when the revision actually changed.
|
|
|
|
revision.h: FORCE
|
2016-05-20 13:59:57 +03:00
|
|
|
@[ -f $@ ] || touch $@
|
|
|
|
@echo "#define $(SOMETHING)" | cmp -s $@ - || \
|
2017-05-09 15:49:21 +03:00
|
|
|
echo "#define $(SOMETHING)" > $@
|
|
|
|
FORCE:
|
2016-05-20 13:59:57 +03:00
|
|
|
|
2003-09-07 04:44:12 +04:00
|
|
|
bin_PROGRAMS = nano
|
2005-11-05 23:01:11 +03:00
|
|
|
nano_SOURCES = browser.c \
|
|
|
|
chars.c \
|
2005-01-12 06:25:57 +03:00
|
|
|
color.c \
|
2003-09-07 04:44:12 +04:00
|
|
|
cut.c \
|
|
|
|
files.c \
|
|
|
|
global.c \
|
2005-11-01 22:32:45 +03:00
|
|
|
help.c \
|
2017-09-17 13:10:12 +03:00
|
|
|
history.c \
|
2003-09-07 04:44:12 +04:00
|
|
|
move.c \
|
|
|
|
nano.c \
|
|
|
|
nano.h \
|
2005-11-01 20:37:44 +03:00
|
|
|
prompt.c \
|
2003-09-07 04:44:12 +04:00
|
|
|
proto.h \
|
|
|
|
rcfile.c \
|
|
|
|
search.c \
|
2005-07-24 23:57:51 +04:00
|
|
|
text.c \
|
2003-09-07 04:44:12 +04:00
|
|
|
utils.c \
|
2017-07-05 22:17:07 +03:00
|
|
|
winio.c
|
2003-09-07 04:44:12 +04:00
|
|
|
|
2017-07-05 22:17:07 +03:00
|
|
|
nano_LDADD = @LIBINTL@ $(top_builddir)/lib/libgnu.a \
|
|
|
|
$(LIB_CLOCK_GETTIME) $(LIBTHREAD)
|
2004-08-01 20:09:15 +04:00
|
|
|
|
|
|
|
install-exec-hook:
|
2005-01-14 21:47:42 +03:00
|
|
|
cd $(DESTDIR)$(bindir) && rm -f rnano && $(LN_S) nano rnano
|
2006-05-19 00:18:36 +04:00
|
|
|
uninstall-hook:
|
|
|
|
cd $(DESTDIR)$(bindir) && rm -f rnano
|