summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile31
1 files changed, 9 insertions, 22 deletions
diff --git a/Makefile b/Makefile
index 781c26cb..9bab0b22 100644
--- a/Makefile
+++ b/Makefile
@@ -1,38 +1,25 @@
-VERSION = 0.50
-NAME = DrakControl
-RC_FILES = $(wildcard rc/*.rc)
+VERSION = $(shell awk '/define version/ { print $$3 }' $(NAME).spec)
+NAME = DrakConf
SUBDIRS = po
localedir = $(prefix)/usr/share/locale
override CFLAGS += -DPACKAGE=\"$(NAME)\" -DLOCALEDIR=\"$(localedir)\"
all: DrakConf
- for d in $(SUBDIRS); do ( cd $$d ; make $@ ) ; done
+# for d in $(SUBDIRS); do ( cd $$d ; make $@ ) ; done
-DrakConf.pm: DrakConf.c pics/pixmaplogo.xpm
- gcc $(CFLAGS) -c DrakConf.c -o DrakConf.o -Wall `gtk+mdk-config --cflags`
+DrakConf:
+ cp control-center3 DrakConf
clean:
- rm -f DrakConf DrakConf.o core .#*[0-9]
- for d in $(SUBDIRS); do ( cd $$d ; make $@ ) ; done
+ rm -f DrakConf core .#*[0-9]
+# for d in $(SUBDIRS); do ( cd $$d ; make $@ ) ; done
install: all
install -d $(RPM_BUILD_ROOT)/usr/{X11R6/bin/,share/icons}
- install -d $(RPM_BUILD_ROOT)/etc/DrakConf/
- for c in $(RC_FILES); do \
- f=`echo $$c|sed 's|.*/\(.*\.rc\)|\1|'` ; \
- install -m644 $$c $(RPM_BUILD_ROOT)/etc/DrakConf/$$f ;\
- done
install -s -m755 $(NAME) $(RPM_BUILD_ROOT)/usr/X11R6/bin/
- install -m755 $(NAME).pm $(RPM_BUILD_ROOT)/usr/X11R6/bin/
- install -m644 pics/*.xpm $(RPM_BUILD_ROOT)/usr/share/icons/
- rm -f $(RPM_BUILD_ROOT)/usr/share/icons/pixmaplogo.xpm
- for d in $(SUBDIRS); do ( cd $$d ; make $@ ) ; done
-
-changelog: ../common/username
- cvs2cl -U ../common/username -I ChangeLog
- rm -f ChangeLog.bak
- cvs commit -m "Generated by cvs2cl the `date '+%d_%b'`" ChangeLog
+ install -m644 pixmaps/*.xpm $(RPM_BUILD_ROOT)/usr/share/icons/
+# for d in $(SUBDIRS); do ( cd $$d ; make $@ ) ; done
dis: clean
rm -rf $(NAME)-$(VERSION) ../$(NAME)-$(VERSION).tar*