Commit e4f4462d authored by Seblu's avatar Seblu
Browse files

Move to autotools

parent 18a82b76
Loading
Loading
Loading
Loading
+1
Changes for Makefile.am: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
SUBDIRS = src/bin src/lib/archversion
+x+3
Changes for bootstrap: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
#/bin/bash

autoreconf --force -v --install
+8
Changes for configure.ac: 8 added lines, 0 removed lines.
Original line number Diff line number Diff line
AC_INIT([archversion], [0])

AM_INIT_AUTOMAKE([foreign])
AM_PATH_PYTHON([3.3])

AC_CONFIG_FILES([Makefile src/bin/Makefile src/lib/archversion/Makefile])

AC_OUTPUT
−20

File deleted.

+20
Changes for src/bin/Makefile.am: 20 added lines, 0 removed lines.
Original line number Diff line number Diff line
bin_SCRIPTS = archversion
CLEANFILES = $(bin_SCRIPTS)
EXTRA_DIST = archversion.in

do_substitution = sed -e 's,[@]pythondir[@],$(pythondir),g' \
	-e 's,[@]PACKAGE[@],$(PACKAGE),g' \
	-e 's,[@]VERSION[@],$(VERSION),g'

archversion: archversion.in
	$(do_substitution) < $(srcdir)/archversion.in > $@
	chmod +x $@

install-exec-hook:
	ln -s archversion $(DESTDIR)$(bindir)/avc

#.py: .in
#	$(do_substitution) $<  > $@
#
#archversion_PYTHON = archversion.py
#archversiondir = $(pythondir)/archversion
Loading