[Pkg-wmaker-commits] [wmgtemp] 06/10: wmgtemp: Switch to autotools for build.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Thu Feb 2 14:18:41 UTC 2017


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

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

commit dedb915dcf3639f8645369ec5219ade4b814eaf1
Author: Doug Torrance <dtorrance at piedmont.edu>
Date:   Wed Feb 1 21:52:00 2017 -0500

    wmgtemp: Switch to autotools for build.
---
 Makefile      | 17 -----------------
 Makefile.am   |  9 +++++++++
 configure.ac  |  9 +++++++++
 src/.deps     |  1 -
 src/Makefile  | 29 -----------------------------
 src/wmgtemp.c |  2 +-
 6 files changed, 19 insertions(+), 48 deletions(-)

diff --git a/Makefile b/Makefile
deleted file mode 100644
index 1d5e696..0000000
--- a/Makefile
+++ /dev/null
@@ -1,17 +0,0 @@
-INSTALL=install
-MANINSTDIR=/usr/local/man/man1
-MANPAGE=wmgtemp.1
-
-all:    
-	( cd src && $(MAKE) )
-
-depend:    
-	( cd src && $(MAKE) depend )
-
-install:    
-	( cd src && $(MAKE) install INSTDIR=$(INSTDIR) )
-	$(INSTALL) -d $(MANINSTDIR)
-	$(INSTALL) -m 755 -c $(MANPAGE) $(MANINSTDIR)/$(MANPAGE)
-
-clean:
-	( cd src && $(MAKE) clean)
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..a41b44d
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,9 @@
+bin_PROGRAMS = wmgtemp
+wmgtemp_SOURCES = src/wmgtemp.c src/wmgtemp-interface-mask.xbm \
+	src/wmgtemp-interface.xpm
+dist_man_MANS = wmgtemp.1
+
+AM_CFLAGS = $(X11_CFLAGS) $(dockapp_CFLAGS)
+LIBS += $(X11_LIBS) $(dockapp_LIBS)
+
+EXTRA_DIST = Artistic BUGS CREDITS examples/wmgtemprc
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..c2d39e7
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,9 @@
+AC_INIT([wmgtemp], [1.1], [wmaker-dev at lists.windowmaker.org])
+AM_INIT_AUTOMAKE([foreign subdir-objects])
+AC_CONFIG_SRCDIR([configure.ac])
+AC_PROG_CC
+AC_CHECK_LIB([sensors],[sensors_get_features])
+PKG_CHECK_MODULES([X11],[x11])
+PKG_CHECK_MODULES([dockapp],[dockapp])
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT
diff --git a/src/.deps b/src/.deps
deleted file mode 100755
index 6a2ab43..0000000
--- a/src/.deps
+++ /dev/null
@@ -1 +0,0 @@
-wmgtemp.o: wmgtemp.c wmgtemp-interface.xpm wmgtemp-interface-mask.xbm
diff --git a/src/Makefile b/src/Makefile
deleted file mode 100644
index e1c5ff4..0000000
--- a/src/Makefile
+++ /dev/null
@@ -1,29 +0,0 @@
-CC      = gcc
-INSTALL = /usr/bin/install
-LIB     = lib
-LDFLAGS = -L/usr/X11R6/$(LIB) -lXpm -lXext -lX11 -lsensors -ldockapp
-BINARY  = wmgtemp
-CCFLAGS = -Wall -g
-INSTDIR = /usr/local/bin
-
-OFILES  = wmgtemp.o
-
-%.o:
-	$(CC) $(CCFLAGS) -c $*.c -o $*.o
-
-$(BINARY): $(OFILES)
-	$(CC) $(OFILES) $(LDFLAGS) -o $(BINARY)
-
-clean:
-	@ $(RM) $(OFILES) *~ "#"* $(BINARY)
-
-install::
-	$(INSTALL) -m 755 -c $(BINARY) $(INSTDIR)/$(BINARY)
-
-depend:
-	@ $(CC) -MM *.c > .deps
-
-count:
-	@ wc -l *.c *.h | sort
-
-include .deps
diff --git a/src/wmgtemp.c b/src/wmgtemp.c
index 12771e9..c47ee33 100644
--- a/src/wmgtemp.c
+++ b/src/wmgtemp.c
@@ -688,7 +688,7 @@ int init_sensors() {
 }
 
 void display_usage() {
-  printf("wmgtemp v0.9\n" \
+  printf("wmgtemp v"PACKAGE_VERSION"\n" \
 	 "Usage: wmgtemp [options]\n" \
 	 "Options:\n" \
 	 "   -S, --sensorconf=PATH  Specify sensors config file PATH\n" \

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



More information about the Pkg-wmaker-commits mailing list