Skip to content

Commit

Permalink
Updated Makefile, fixed issue #44
Browse files Browse the repository at this point in the history
    - When header files get changed, the relevant object will get recompiled.
  • Loading branch information
fangfufu committed Sep 2, 2019
1 parent ee397d1 commit 765f4e0
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
*.o
*.kate-swp
httpdirfs
.depend
doc/html
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Changed
- Updated Makefile, fixed issue #44
- When header files get changed, the relevant object will get recompiled.

## [1.1.9] - 2019-09-02
### Changed
Expand Down
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,10 @@ uninstall:
-rm -f $(DESTDIR)$(prefix)/bin/httpdirfs
-rm -f $(DESTDIR)$(prefix)/share/man/man1/httpdirfs.1

.PHONY: all doc install clean distclean uninstall
depend: .depend
.depend: src/*.c
rm -f ./.depend
$(CC) $(CFLAGS) -MM $^ -MF ./.depend;
include .depend

.PHONY: all doc install clean distclean uninstall depend
2 changes: 0 additions & 2 deletions src/cache.c
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
#include "cache.h"

#include <sys/stat.h>
#include <sys/types.h>

#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
Expand Down
1 change: 0 additions & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#include "network.h"

#include <getopt.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

Expand Down
3 changes: 0 additions & 3 deletions src/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

#include <pthread.h>
#include <stdint.h>
#include <stdlib.h>

/**
* \brief the maximum length of a path and a URL.
Expand All @@ -28,7 +27,6 @@ void PTHREAD_MUTEX_LOCK(pthread_mutex_t *x);
*/
void PTHREAD_MUTEX_UNLOCK(pthread_mutex_t *x);


/**
* \brief append a path
* \details This function appends a path with the next level, while taking the
Expand All @@ -43,5 +41,4 @@ char *path_append(const char *path, const char *filename);
*/
int64_t round_div(int64_t a, int64_t b);


#endif

0 comments on commit 765f4e0

Please sign in to comment.