[Pkg-wmaker-commits] [wmshutdown] 92/173: Convert build process to autotools.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Tue Aug 25 02:46:33 UTC 2015


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

dtorrance-guest pushed a commit to branch master
in repository wmshutdown.

commit 6760a0eb55d3edde727e3e5634494dc52af1b795
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Sat Jul 26 01:31:15 2014 -0500

    Convert build process to autotools.
---
 Makefile     | 29 -----------------------------
 Makefile.am  | 10 ++++++++++
 configure.ac |  8 ++++++++
 3 files changed, 18 insertions(+), 29 deletions(-)

diff --git a/Makefile b/Makefile
deleted file mode 100644
index 219e871..0000000
--- a/Makefile
+++ /dev/null
@@ -1,29 +0,0 @@
-all:
-	@echo "wmShutdown version 0.1 - Rafael V. Aroca <rafael at linuxqos.cjb.net>"
-	@echo "Order of makes to install: dock, shutdown, install"
-
-clean:
-	rm -f wmShutdown.o  
-	rm -f wmShutdown
-	rm -f Shutdown
-
-install:
-	install wmShutdown /usr/local/bin
-	install wmShutdown.xpm /usr/share/pixmaps/
-	install -g root -o root Shutdown /usr/local/bin
-	chmod +s /sbin/shutdown
-	chmod +s /usr/local/bin/Shutdown
-	@echo Installed. Just type wmShutdown to use it
-
-uninstall:
-	rm -f /usr/local/bin/wmShutdown
-	rm -f /usr/local/bin/Shutdown
-	rm -f /usr/share/pixmaps/wmShutdown.xpm
-	@echo ":-( Uninstalled."
-
-dock: wmShutdown.c
-	$(CC) -c -o wmShutdown.o wmShutdown.c `gtk-config --cflags` 
-	$(CC) -o wmShutdown wmShutdown.o `gtk-config --libs` 
-
-shutdown: shutdown.c
-	$(CC) -o Shutdown shutdown.c 
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..78ed5d4
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,10 @@
+bin_PROGRAMS = wmshutdown wmshutdown-run
+wmshutdown_SOURCES = wmshutdown.c
+wmshutdown_run_SOURCES = wmshutdown-run.c
+
+AM_CFLAGS = $(gtk_CFLAGS) $(x11_CFLAGS)
+AM_CPPFLAGS =  -DDATADIR=\"$(pkgdatadir)\"
+LIBS += $(gtk_LIBS) $(x11_LIBS)
+
+dist_pkgdata_DATA = wmshutdown.xpm
+dist_man_MANS = wmshutdown.1 wmshutdown-run.1
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..3fcf82a
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,8 @@
+AC_INIT([wmshutdown], [1.0], [dtorrance at monmouthcollege.edu])
+AM_INIT_AUTOMAKE([-Wall -Werror foreign])
+AC_CONFIG_SRCDIR([configure.ac])
+AC_PROG_CC
+PKG_CHECK_MODULES([gtk],[gtk+-3.0])
+PKG_CHECK_MODULES([x11],[x11])
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT

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



More information about the Pkg-wmaker-commits mailing list