2000-05-19 11:53:14 +00:00
|
|
|
--- Makefile.orig Thu Apr 6 23:18:13 2000
|
|
|
|
+++ Makefile Fri May 19 14:45:14 2000
|
|
|
|
@@ -1,10 +1,11 @@
|
|
|
|
-ICONDIR = /usr/share/icons/wmbattery
|
1999-10-21 04:29:02 +00:00
|
|
|
-BINDIR = /usr/X11R6/bin
|
|
|
|
-MANDIR = /usr/X11R6/man/man1
|
|
|
|
-INCDIR = -I/usr/X11R6/include
|
|
|
|
-LIBDIR = -L/usr/X11R6/lib
|
|
|
|
+PREFIX = /usr/X11R6
|
|
|
|
+ICONDIR = $(PREFIX)/share/wmbattery/icons
|
|
|
|
+BINDIR = $(PREFIX)/bin
|
|
|
|
+MANDIR = $(PREFIX)/man/man1
|
|
|
|
+INCDIR = -I$(PREFIX)/include
|
|
|
|
+LIBDIR = -L$(PREFIX)/lib
|
|
|
|
LIBS = -lXpm -lXext
|
2000-05-19 11:53:14 +00:00
|
|
|
-CFLAGS = $(INCDIR) -g -DICONDIR=\"$(ICONDIR)\" -O2 -Wall
|
|
|
|
+CFLAGS += $(INCDIR) -g -DICONDIR=\"$(ICONDIR)\"
|
1999-10-21 04:29:02 +00:00
|
|
|
|
2000-05-19 11:53:14 +00:00
|
|
|
wmbattery: wmbattery.c wmbattery.h
|
|
|
|
$(CC) $(CFLAGS) $(LIBDIR) $(LIBS) wmbattery.c -o wmbattery
|
1999-10-21 04:29:02 +00:00
|
|
|
@@ -13,10 +14,10 @@
|
|
|
|
rm -f wmbattery
|
|
|
|
|
|
|
|
install: wmbattery
|
|
|
|
- install -c -d $(PREFIX)$(ICONDIR) $(PREFIX)$(BINDIR) $(PREFIX)$(MANDIR)
|
|
|
|
- install -c -s wmbattery $(PREFIX)$(BINDIR)
|
|
|
|
- install -c -m 644 wmbattery.1x $(PREFIX)$(MANDIR)/wmbattery.1
|
|
|
|
- install -c -m 644 *.xpm $(PREFIX)$(ICONDIR)
|
|
|
|
+ install -c -d $(ICONDIR) $(BINDIR) $(MANDIR)
|
|
|
|
+ $(INSTALL_PROGRAM) wmbattery $(BINDIR)
|
|
|
|
+ $(INSTALL_MAN) wmbattery.1x $(MANDIR)/wmbattery.1
|
|
|
|
+ $(INSTALL_DATA) *.xpm $(ICONDIR)
|
|
|
|
|
|
|
|
test: wmbattery
|
|
|
|
./wmbattery
|