bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 3/9] Fix "make dist" in `exec'


From: Ludovic Courtès
Subject: [PATCH 3/9] Fix "make dist" in `exec'
Date: Sat, 17 Jul 2010 16:38:18 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

From 55754cad6f51e753577d9d620fe40c4f958bf0de Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= <ludo@gnu.org>
Date: Sat, 17 Jul 2010 15:57:42 +0200
Subject: [PATCH 3/9] Fix "make dist" in `exec'.

* exec/Makefile (SRCS): Refer to `$(gzip-sources)' and
  `$(bzip2-sources)' instead of listing files individually.
  (gzip-sources, bzip2-sources): New variable.
  (gzip-objects, bzip2-objects): Derive from the above variables.
---
 exec/Makefile |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/exec/Makefile b/exec/Makefile
index 9b318e8..e7050c1 100644
--- a/exec/Makefile
+++ b/exec/Makefile
@@ -1,4 +1,4 @@
-# Copyright (C) 1993,94,95,96,98,99,2000,01,02 Free Software Foundation, Inc.
+# Copyright (C) 1993,94,95,96,98,99,2000,01,02,10 Free Software Foundation, 
Inc.
 # This file is part of the GNU Hurd.
 #
 # The GNU Hurd is free software; you can redistribute it and/or modify
@@ -18,12 +18,16 @@
 dir := exec
 makemode := server
 
-SRCS = exec.c main.c hashexec.c hostarch.c unzip.c util.c inflate.c
+SRCS = exec.c main.c hashexec.c hostarch.c \
+       $(gzip-sources) $(bzip2-sources)
 OBJS = main.o hostarch.o exec.o hashexec.o \
        execServer.o exec_startupServer.o \
        $(gzip-objects) $(bzip2-objects)
-gzip-objects = unzip.o util.o inflate.o
-bzip2-objects = do-bunzip2.o
+gzip-sources = unzip.c util.c inflate.c
+gzip-objects = $(gzip-sources:%.c=%.o)
+bzip2-sources = do-bunzip2.c
+bzip2-objects = $(bzip2-sources:%.c=%.o)
+
 LCLHDRS = gzip.h crypt.h tailor.h priv.h execmutations.h
 target = exec
 #targets = exec exec.static
-- 
1.7.0

Attachment: pgpyc660I2_XN.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]