2014-02-25 23:08:12 +04:00
|
|
|
AM_CPPFLAGS = -DLOCALEDIR=\"$(localedir)\" -DSYSCONFDIR=\"$(sysconfdir)\"
|
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
|
|
|
|
SOMETHING = "REVISION \"$(shell git describe --tags 2>/dev/null)\""
|
|
|
|
else
|
|
|
|
SOMETHING = "NOTHING \"from tarball\""
|
|
|
|
endif
|
|
|
|
|
|
|
|
nano.o: revision.h
|
|
|
|
winio.o: revision.h
|
|
|
|
|
|
|
|
revision.h: update_revision
|
|
|
|
@[ -f $@ ] || touch $@
|
|
|
|
@echo "#define $(SOMETHING)" | cmp -s $@ - || \
|
|
|
|
echo "#define $(SOMETHING)" > $@
|
|
|
|
|
|
|
|
.PHONY: update_revision
|
|
|
|
|
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 \
|
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 \
|
|
|
|
winio.c
|
|
|
|
|
|
|
|
nano_LDADD = @GLIB_LIBS@ @LIBINTL@
|
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
|