/[soft]/numlock/branches/1/Makefile
ViewVC logotype

Contents of /numlock/branches/1/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1637 - (show annotations) (download)
Thu Jun 2 20:45:18 2011 UTC (10 years, 7 months ago) by dmorgan
File size: 1233 byte(s)
Branch for updates
1 NAME = numlock
2 VERSION = 2.1.2
3
4 TOP=
5 CFLAGS=-g -O2 -Wall
6 CC=gcc
7 FLAGS=-lX11 -lXtst
8
9 enable_X11_numlock: enable_X11_numlock.c
10 $(CC) $(CFLAGS) $(FLAGS) -o $@ $<
11
12 all: enable_X11_numlock
13
14 clean:
15 rm -f enable_X11_numlock core *.o
16
17 install: all
18 install -d $(TOP)/usr/{bin,share/man/man1}/
19 install -d $(TOP)/etc/profile.d
20 install -d $(TOP)/$(INITRDDIR)
21 install -d $(TOP)/etc/X11/xinit.d
22
23 install -m755 enable_X11_numlock $(TOP)/usr/bin
24 install -m755 man/C/enable_X11_numlock.1 $(TOP)/usr/share/man/man1/
25 for i in man/??* ; do \
26 install -d $(TOP)/usr/share/man/`basename $$i`/man1 ; \
27 install -m 644 $$i/*.1 $(TOP)/usr/share/man/`basename $$i`/man1 ; \
28 done
29
30 install -m755 numlock.init $(TOP)/$(INITRDDIR)/$(NAME)
31 install -m755 numlock.sh $(TOP)/etc/profile.d/
32 install -m755 numlock.xinit $(TOP)/etc/X11/xinit.d/numlock
33
34 dis: clean
35 rm -rf $(NAME)-$(VERSION) ../$(NAME)-$(VERSION).tar*
36 mkdir -p $(NAME)-$(VERSION)
37 find . -not -name "$(NAME)-$(VERSION)"|cpio -pd $(NAME)-$(VERSION)/
38 find $(NAME)-$(VERSION) -type d -name .svn -o -name unused |xargs rm -rf
39 tar cf ../$(NAME)-$(VERSION).tar $(NAME)-$(VERSION)
40 bzip2 -9f ../$(NAME)-$(VERSION).tar
41 chmod 644 ../$(NAME)-$(VERSION).tar.bz2
42 rm -rf $(NAME)-$(VERSION)

Properties

Name Value
svn:eol-style native

  ViewVC Help
Powered by ViewVC 1.1.28