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