[Pkg-wmaker-commits] [wmbutton] 18/25: wmbutton: Use autotools for build.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Sun Jul 16 23:38:10 UTC 2017


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch upstream
in repository wmbutton.

commit a8cc0de441d901c447d61fc5e6e4b38fcef36c21
Author: Doug Torrance <dtorrance at piedmont.edu>
Date:   Sat Jul 15 23:54:45 2017 -0400

    wmbutton: Use autotools for build.
---
 Makefile          | 39 ---------------------------------------
 Makefile.am       |  9 +++++++++
 configure.ac      |  9 +++++++++
 icons/Makefile.am |  2 ++
 4 files changed, 20 insertions(+), 39 deletions(-)

diff --git a/Makefile b/Makefile
deleted file mode 100644
index 7738730..0000000
--- a/Makefile
+++ /dev/null
@@ -1,39 +0,0 @@
-INCLUDES =-I/usr/include -I/usr/local/include
-LIBINC =-L/usr/X11R6/lib -L/usr/include/lib
-LIBS = -lX11 -lXpm -lXext
-
-TARGET = wmbutton
-OBJECTS = wmbutton.o wmb_libs.o
-DESTDIR = /usr/local
-PREFIX = /usr
-BINDIR = /bin
-CONF   = /etc
-CONFFL = ${CONF}/wmbutton.conf
-INSTALL = /usr/bin/install
-
-CFLAGS += -Wall -O2
-LDFLAGS +=
-
-.c.o:
-	gcc -c ${CFLAGS} ${INCLUDES} $< -o $*.o
-
-${TARGET}: ${OBJECTS}
-	gcc -o ${TARGET} ${OBJECTS}  ${LDFLAGS} ${LIBINC} ${LIBS}
-
-clean::
-	for i in ${OBJECTS}; do if [ -e $$i ] ; then rm $$i; fi; done
-	if [ -e ${TARGET} ] ; then rm ${TARGET}; fi
-	if [ -e tags ]; then rm tags; fi
-	if [ -e core ]; then rm core; fi
-
-install::
-	$(INSTALL) -d -m 0755 ${DESTDIR}${PREFIX}${BINDIR} ${DESTDIR}${CONF}
-	$(INSTALL) -p -o root -g root -m 755 wmbutton ${DESTDIR}${PREFIX}${BINDIR}
-	$(INSTALL) -p -o root -g root -m 644 sample.wmbutton ${DESTDIR}${CONFFL}
-
-wmbutton.o: wmbutton.c wmbutton.h Makefile
-
-wmb_libs.o: wmb_libs.c wmbutton.h Makefile
-
-tags:
-	ctags *.[ch]
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..7c2b405
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,9 @@
+SUBDIRS = icons
+bin_PROGRAMS = wmbutton
+dist_man_MANS = wmbutton.1
+dist_sysconf_DATA = wmbutton.conf
+wmbutton_SOURCES = backdrop.xpm buttons.xpm mask.xbm wmb_libs.c wmbutton.c \
+	wmbutton.h
+
+AM_CFLAGS = $(x11_CFLAGS) $(xpm_CFLAGS) $(xext_CFLAGS)
+LIBS += $(x11_LIBS) $(xpm_LIBS) $(xext_LIBS)
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..29bb88d
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,9 @@
+AC_INIT([wmbutton], [0.7.0], [wmaker-dev at lists.windowmaker.org])
+AM_INIT_AUTOMAKE([foreign])
+AC_CONFIG_SRCDIR([configure.ac])
+AC_PROG_CC
+PKG_CHECK_MODULES([x11], [x11])
+PKG_CHECK_MODULES([xpm], [xpm])
+PKG_CHECK_MODULES([xext], [xext])
+AC_CONFIG_FILES([Makefile icons/Makefile])
+AC_OUTPUT
diff --git a/icons/Makefile.am b/icons/Makefile.am
new file mode 100644
index 0000000..16ce9cf
--- /dev/null
+++ b/icons/Makefile.am
@@ -0,0 +1,2 @@
+dist_pkgdata_DATA = audio.xpm blankbutton.xpm buttons2.xpm edit.xpm ftp.xpm \
+	graph.xpm gv.xpm netscape.xpm paint.xpm wp.xpm xterm.xpm

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmbutton.git



More information about the Pkg-wmaker-commits mailing list