You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
2.3 KiB

22 years ago
PROGRAM=tasksel
DOMAIN=debian-tasks
TASKDESC=$(DOMAIN).desc
TASKDIR=/usr/share/tasksel
DESCDIR=tasks
DESCPO=$(DESCDIR)/po
22 years ago
CC=gcc
CFLAGS=-g -Wall #-Os
DEBUG=1
ifeq (0,$(DEBUG))
DEFS=-DVERSION=\"$(VERSION)\" -DPACKAGE=\"$(PROGRAM)\" -DLOCALEDIR=\"/usr/share/locale\" \
-DTASKDIR=\"$(TASKDIR)\"
else
DEFS=-DVERSION=\"$(VERSION)\" -DPACKAGE=\"$(PROGRAM)\" -DLOCALEDIR=\"/usr/share/locale\" \
-DTASKDIR=\".\" -DDEBUG
endif
* Modifications to existing tasks: - Replaced talk of "this [meta]package" with "this task", and like changes. - In l10n tasks, s/-speaking// for consistency. - Make all l10n tasks include locales. It's in base, so this is of dubious utility, but some had it and some not. - Changed short descriptions of basic-desktop and desktop in an attempt to clarify how they're different. - Added some comments here and there for unresolved issues. - Largely rewrote Debian Jr. descriptions. - Added menu to desktop task. - Rejiggered mail-server, to be a general purpose mail server, not just imap. - Moved samba-server to file-server, and made that include nfs stuff too. - Added a print-server task, that also includes samba, along with other stuff. - Killed debian-dev(el) task, since it does not meet our task criteria -- nowhere near 10% of debian users are debian developers (we hope!), and probably not enough regular users will use this package to make up the difference. This is my own package, so I'm willing to be persuaded otherwise, though.. - Removed misc window managers from the desktop task. It is unnecessary to list them there, since anXious will let the user choose. - Killed the demo tasks. - Went for consistent capitalization of the short descriptions. Just capitalize proper names. I'm not sure if I like this effect, we may want to capitalize the first word of each description too. - Sundry other changes of little note. * Replaced several occurrances of "task packages" with "tasks" elsewhere in tasksel. * Added -a switch, to show all tasks, even empties. Mostly useful before we get tasks into the Packages files, for a global overview of how the * Added lint check to makedesc.pl -- it will warn at build time about tasks that list unavailable packages. This caught several references to virtual packages, etc already, that need to be fixed.. * VERSION in Makefile automatically tracks changelog.
21 years ago
VERSION=$(shell expr "`dpkg-parsechangelog 2>/dev/null |grep Version:`" : '.*Version: \(.*\)' | cut -d - -f 1)
LIBS=-lslang -ltextwrap #-lccmalloc -ldl
22 years ago
OBJS=tasksel.o slangui.o data.o util.o strutl.o
LANGS=cs da de es fi fr hu it ja no nn pl pt_BR ru sv zh_TW
LANGS_DESC=de ja
22 years ago
LOCALEDIR=$(DESTDIR)/usr/share/locale
COMPILE = $(CC) $(CFLAGS) $(DEFS) -c
LINK = $(CC) $(CFLAGS) $(DEFS) -o
all: $(PROGRAM) $(TASKDESC) $(DESCPO)/build_stamp
$(TASKDESC): makedesc.pl $(DESCDIR)/[a-z]??*
perl doincludes.pl $(DESCDIR)
perl makedesc.pl $(DESCDIR) $(TASKDESC)
%.o: %.c
$(COMPILE) $<
po/build_stamp:
22 years ago
$(MAKE) -C po LANGS="$(LANGS)"
updatepo:
$(MAKE) -C po update LANGS="$(LANGS)"
$(DESCPO)/build_stamp:
$(MAKE) -C $(DESCPO) LANGS="$(LANGS_DESC)"
$(PROGRAM): $(OBJS) po/build_stamp
$(LINK) $(PROGRAM) $(OBJS) $(LIBS)
install:
22 years ago
install -m 755 tasksel $(DESTDIR)/usr/bin
install -m 0644 $(TASKDESC) $(DESTDIR)$(TASKDIR)
pod2man --center "Debian specific manpage" --release $(VERSION) tasksel.pod | gzip -9c > $(DESTDIR)/usr/share/man/man8/tasksel.8.gz
22 years ago
for lang in $(LANGS); do \
[ ! -d $(LOCALEDIR)/$$lang/LC_MESSAGES/ ] && mkdir -p $(LOCALEDIR)/$$lang/LC_MESSAGES/; \
install -m 644 po/$$lang.mo $(LOCALEDIR)/$$lang/LC_MESSAGES/$(PROGRAM).mo; \
done
for lang in $(LANGS_DESC); do \
[ ! -d $(LOCALEDIR)/$$lang/LC_MESSAGES/ ] && mkdir -p $(LOCALEDIR)/$$lang/LC_MESSAGES/; \
install -m 644 tasks/po/$$lang.mo $(LOCALEDIR)/$$lang/LC_MESSAGES/$(DOMAIN).mo; \
done
test:
$(MAKE) -C scratch
clean:
rm -f $(PROGRAM) $(TASKDESC) *.o *~
$(MAKE) -C po clean
$(MAKE) -C $(DESCPO) clean
# This taget is run on auric to generate the overrides files.
# It is run from a cron job, so should only generate output if there are
# problems.
override:
19 years ago
@cvs up tasks 2>&1 | grep -v ^U | grep -v ".cvspass" || true
@perl makeoverride.pl $(DESCDIR) > temp-override
@cp temp-override /org/ftp.debian.org/scripts/external-overrides/task
@rm -f temp-override