packages: wmint/wmint.Makefile (NEW) - NEW: relatively universal Makefile f...
sparky
sparky at pld-linux.org
Sun Jan 3 03:48:10 CET 2010
Author: sparky Date: Sun Jan 3 02:48:10 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- NEW: relatively universal Makefile for WM docklets
---- Files affected:
packages/wmint:
wmint.Makefile (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/wmint/wmint.Makefile
diff -u /dev/null packages/wmint/wmint.Makefile:1.1
--- /dev/null Sun Jan 3 03:48:10 2010
+++ packages/wmint/wmint.Makefile Sun Jan 3 03:48:05 2010
@@ -0,0 +1,35 @@
+CFLAGS = $(OPTCFLAGS) -Wall
+LDFLAGS =
+LIBS = -lXpm -lX11 -lXext
+DESTDIR =
+PREFIX = /usr
+BINDIR = $(PREFIX)/bin
+DATADIR = $(PREFIX)/share
+MANDIR = $(DATADIR)/man
+MAN1DIR = $(MANDIR)/man1
+DOCKLETDIR = $(DATADIR)/applications/docklets
+
+EXTRACLEAN =
+EXTRABIN =
+MAN1FILE =
+DOCKLETFILE =
+
+include Makefile.include
+
+all: $(NAME)
+
+%.o: %.c
+ $(CC) $(CFLAGS) -c $< -o $@
+
+$(NAME): $(OBJS)
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
+
+clean:
+ rm -f $(OBJS) $(NAME) $(EXTRACLEAN)
+
+install: $(NAME)
+ install -d $(DESTDIR)$(BINDIR) $(DESTDIR)$(MAN1DIR) $(DESTDIR)$(DOCKLETDIR)
+ install -m 755 $(NAME) $(DESTDIR)$(BINDIR)
+ [ -z "$(EXTRABIN)" ] || install -m 755 $(EXTRABIN) $(DESTDIR)$(BINDIR)
+ [ -z "$(MAN1FILE)" ] || install -m 644 $(MAN1FILE) $(DESTDIR)$(MAN1DIR)
+ [ -z "$(DOCKLETFILE)" ] || install -m 644 $(DOCKLETFILE) $(DESTDIR)$(DOCKLETDIR)/$(NAME).desktop
================================================================
More information about the pld-cvs-commit
mailing list