1. idella5
  2. eselect-python

Commits

Jesus Rivero  committed 88746a3

rewrite autotools

  • Participants
  • Parent commits d1db180
  • Branches master

Comments (0)

Files changed (4)

File Makefile.am

View file
  • Ignore whitespace
+bin_PROGRAMS = python-wrapper
+
+eselectdir = $(datadir)/eselect/modules
+dist_eselect_DATA = python.eselect

File Makefile.in

  • Ignore whitespace
-CC = @CC@
-CPPFLAGS = @CPPFLAGS@
-CFLAGS = @CFLAGS@
-WARNINGS_FLAGS = -Wall -Wextra
-LDFLAGS = @LDFLAGS@
-LIBS = @LIBS@
-EXEEXT = @EXEEXT@
-MKDIR = @MKDIR@
-INSTALL= @INSTALL@
-
-prefix = @prefix@
-exec_prefix = @exec_prefix@
-bindir = @bindir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-
-all: python-wrapper$(EXEEXT)
-
-python-wrapper$(EXEEXT): config.h python-wrapper.c
-	$(CC) $(CPPFLAGS) $(CFLAGS) $(WARNINGS_FLAGS) $(LDFLAGS) -o $@ python-wrapper.c $(LIBS)
-
-install: all
-	$(MKDIR) $(DESTDIR)$(bindir) $(DESTDIR)$(datadir)/eselect/modules
-	$(INSTALL) python-wrapper$(EXEEXT) $(DESTDIR)$(bindir)/python-wrapper$(EXEEXT)
-	$(INSTALL) -m 644 python.eselect $(DESTDIR)$(datadir)/eselect/modules/python.eselect
-
-clean:
-	rm -fr python-wrapper$(EXEEXT)
-
-distclean: clean
-	rm -fr config.h config.log config.status Makefile
-
-extraclean: distclean
-	rm -fr config.h.in configure

File autogen.sh

View file
  • Ignore whitespace
-#!/bin/sh
-
-"${AUTOHEADER:-autoheader}" || exit 1
-"${AUTOCONF:-autoconf}" || exit 1
-
-# Remove Autoconf cache.
-rm -fr autom4te.cache
+#!/bin/sh -x
+exec autoreconf -fi

File configure.ac

View file
  • Ignore whitespace
-AC_INIT([eselect-python], [20100321])
-
-CFLAGS="${CFLAGS--march=native -O3 -pipe -fno-ident}"
-LDFLAGS="${LDFLAGS--Wl,-O1,--as-needed,--gc-sections,--hash-style=gnu}"
+AC_INIT([eselect-python], [20111108])
+AM_INIT_AUTOMAKE([-Wall foreign no-dist-gzip dist-bzip2])
 
 AC_PROG_CC
 AC_PATH_PROG(INSTALL, install)
-MKDIR="${MKDIR:-${INSTALL} -d}"
+AC_PROG_MKDIR_P
 
 AC_USE_SYSTEM_EXTENSIONS
 
 fi
 CFLAGS="${old_CFLAGS}"
 
-AC_SUBST([MKDIR])
-
 # Create output files.
 AC_CONFIG_HEADERS([config.h])
 AC_CONFIG_FILES([Makefile])