Skip to content

Commit 2f29dd5

Browse files
author
H. Peter Anvin
committed
Change $(X) -> $X to be less annoying.
1 parent 300b480 commit 2f29dd5

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

Makefile

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -98,29 +98,29 @@ SCRIPT_PYTHON = \
9898

9999
# The ones that do not have to link with lcrypto nor lz.
100100
SIMPLE_PROGRAMS = \
101-
git-get-tar-commit-id$(X) git-mailinfo$(X) git-mailsplit$(X) \
102-
git-stripspace$(X) git-var$(X) git-daemon$(X)
101+
git-get-tar-commit-id$X git-mailinfo$X git-mailsplit$X \
102+
git-stripspace$X git-var$X git-daemon$X
103103

104104
# ... and all the rest
105105
PROGRAMS = \
106-
git-apply$(X) git-cat-file$(X) git-checkout-index$(X) \
107-
git-clone-pack$(X) git-commit-tree$(X) git-convert-objects$(X) \
108-
git-diff-files$(X) git-diff-index$(X) git-diff-stages$(X) \
109-
git-diff-tree$(X) git-fetch-pack$(X) git-fsck-objects$(X) \
110-
git-hash-object$(X) git-init-db$(X) git-local-fetch$(X) \
111-
git-ls-files$(X) git-ls-tree$(X) git-merge-base$(X) \
112-
git-merge-index$(X) git-mktag$(X) git-pack-objects$(X) \
113-
git-patch-id$(X) git-peek-remote$(X) git-prune-packed$(X) \
114-
git-read-tree$(X) git-receive-pack$(X) git-rev-list$(X) \
115-
git-rev-parse$(X) git-send-pack$(X) git-show-branch$(X) \
116-
git-show-index$(X) git-ssh-fetch$(X) git-ssh-upload$(X) \
117-
git-tar-tree$(X) git-unpack-file$(X) git-unpack-objects$(X) \
118-
git-update-index$(X) git-update-server-info$(X) \
119-
git-upload-pack$(X) git-verify-pack$(X) git-write-tree$(X) \
120-
git-update-ref$(X) $(SIMPLE_PROGRAMS)
106+
git-apply$X git-cat-file$X git-checkout-index$X \
107+
git-clone-pack$X git-commit-tree$X git-convert-objects$X \
108+
git-diff-files$X git-diff-index$X git-diff-stages$X \
109+
git-diff-tree$X git-fetch-pack$X git-fsck-objects$X \
110+
git-hash-object$X git-init-db$X git-local-fetch$X \
111+
git-ls-files$X git-ls-tree$X git-merge-base$X \
112+
git-merge-index$X git-mktag$X git-pack-objects$X \
113+
git-patch-id$X git-peek-remote$X git-prune-packed$X \
114+
git-read-tree$X git-receive-pack$X git-rev-list$X \
115+
git-rev-parse$X git-send-pack$X git-show-branch$X \
116+
git-show-index$X git-ssh-fetch$X git-ssh-upload$X \
117+
git-tar-tree$X git-unpack-file$X git-unpack-objects$X \
118+
git-update-index$X git-update-server-info$X \
119+
git-upload-pack$X git-verify-pack$X git-write-tree$X \
120+
git-update-ref$X $(SIMPLE_PROGRAMS)
121121

122122
# Backward compatibility -- to be removed after 1.0
123-
PROGRAMS += git-ssh-pull$(X) git-ssh-push$(X)
123+
PROGRAMS += git-ssh-pull$X git-ssh-push$X
124124

125125
PYMODULES = \
126126
gitMergeCommon.py
@@ -190,7 +190,7 @@ ifndef NO_CURL
190190
else
191191
CURL_LIBCURL = -lcurl
192192
endif
193-
PROGRAMS += git-http-fetch$(X)
193+
PROGRAMS += git-http-fetch$X
194194
endif
195195

196196
ifndef SHELL_PATH
@@ -299,30 +299,30 @@ $(patsubst %.py,%,$(SCRIPT_PYTHON)) : % : %.py
299299
%.o: %.S
300300
$(CC) -o $*.o -c $(ALL_CFLAGS) $<
301301

302-
git-%$(X): %.o $(LIB_FILE)
302+
git-%$X: %.o $(LIB_FILE)
303303
$(CC) $(ALL_CFLAGS) -o $@ $(filter %.o,$^) $(LIBS)
304304

305-
git-mailinfo$(X) : SIMPLE_LIB += $(LIB_4_ICONV)
305+
git-mailinfo$X : SIMPLE_LIB += $(LIB_4_ICONV)
306306
$(SIMPLE_PROGRAMS) : $(LIB_FILE)
307-
$(SIMPLE_PROGRAMS) : git-%$(X) : %.o
307+
$(SIMPLE_PROGRAMS) : git-%$X : %.o
308308
$(CC) $(ALL_CFLAGS) -o $@ $(filter %.o,$^) $(LIB_FILE) $(SIMPLE_LIB)
309309

310-
git-http-fetch$(X): fetch.o
311-
git-local-fetch$(X): fetch.o
312-
git-ssh-fetch$(X): rsh.o fetch.o
313-
git-ssh-upload$(X): rsh.o
314-
git-ssh-pull$(X): rsh.o fetch.o
315-
git-ssh-push$(X): rsh.o
310+
git-http-fetch$X: fetch.o
311+
git-local-fetch$X: fetch.o
312+
git-ssh-fetch$X: rsh.o fetch.o
313+
git-ssh-upload$X: rsh.o
314+
git-ssh-pull$X: rsh.o fetch.o
315+
git-ssh-push$X: rsh.o
316316

317-
git-http-fetch$(X): LIBS += $(CURL_LIBCURL)
318-
git-rev-list$(X): LIBS += $(OPENSSL_LIBSSL)
317+
git-http-fetch$X: LIBS += $(CURL_LIBCURL)
318+
git-rev-list$X: LIBS += $(OPENSSL_LIBSSL)
319319

320320
init-db.o: init-db.c
321321
$(CC) -c $(ALL_CFLAGS) \
322322
-DDEFAULT_GIT_TEMPLATE_DIR='"$(template_dir)"' $*.c
323323

324324
$(LIB_OBJS): $(LIB_H)
325-
$(patsubst git-%$(X),%.o,$(PROGRAMS)): $(LIB_H)
325+
$(patsubst git-%$X,%.o,$(PROGRAMS)): $(LIB_H)
326326
$(DIFF_OBJS): diffcore.h
327327

328328
$(LIB_FILE): $(LIB_OBJS)
@@ -337,10 +337,10 @@ doc:
337337
test: all
338338
$(MAKE) -C t/ all
339339

340-
test-date$(X): test-date.c date.o
340+
test-date$X: test-date.c date.o
341341
$(CC) $(ALL_CFLAGS) -o $@ test-date.c date.o
342342

343-
test-delta$(X): test-delta.c diff-delta.o patch-delta.o
343+
test-delta$X: test-delta.c diff-delta.o patch-delta.o
344344
$(CC) $(ALL_CFLAGS) -o $@ $^
345345

346346
check:

0 commit comments

Comments
 (0)